import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import "./assets/css/reset.css"
import VueCookies from 'vue-cookies'
import VueI18n from 'vue-i18n'


Vue.use(VueI18n);

const i18n = new VueI18n({
  locale: 'ch', // 将要切换的语言，可以通过url拼的参数获取，用户行为select选择获取，本地manifest配置获取等，根据场景动态获取
  messages: {
    'ch': require('./assets/languages/chs.js'),  // 本地资源文件，我这里配2个语言，中文&英文，src下根据个人情况放置
    'en': require('./assets/languages/en.js')
  }
});
Vue.use(Element)
Vue.use(VueCookies)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
